<!--%import("filter/delete_checked.xml")-->
<!--%import("js/poll_admin.js")-->

<!--#include("./header.html")-->

<form action="./" method="get" onsubmit="return procFilter(this, delete_checked)" id="fo_list">
<input type="hidden" name="page" value="{$page}" />

<!-- 목록 -->
<table cellspacing="0" class="crossTable">
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
<thead>
    <tr>
        <th scope="col"><div>{$lang->no}</div></th>
        <th scope="col"><div><input type="checkbox" onclick="XE.checkboxToggleAll(); return false;" /></div></th>
        <th scope="col" class="wide"><div>{$lang->title}</div></th>
        <th scope="col"><div>{$lang->poll_checkcount}</div></th>
        <th scope="col"><div>{$lang->poll_join_count}</div></th>
        <th scope="col"><div>{$lang->regdate}</div></th>
        <th scope="col"><div>&nbsp;</div></th>
    </tr>
</thead>
<tbody>
    <!--@foreach($poll_list as $no => $val)-->
    <tr class="row{$cycle_idx}">
        <td class="number center">{$no}</td>
        <td class="center"><input type="checkbox" name="cart" value="{$val->poll_index_srl}" /></td>
        <td><a href="#" onclick="doMovePoll({$val->poll_srl},{$val->upload_target_srl});return false;">{$val->title}</a></td>
        <td class="number center">{$val->checkcount}</td>
        <td class="number center">{$val->poll_count}</td>
        <td class="date nowrap center">{zdate($val->regdate,"Y-m-d H:i")}</td>
        <td class="center nowrap view"><a href="{getUrl('','module','poll','act','dispPollAdminResult','poll_srl',$val->poll_srl,'poll_index_srl',$val->poll_index_srl)}" onclick="popopen(this.href); return false;" title="{htmlspecialchars($lang->cmd_view)}">{$lang->cmd_view}</a></td>
    </tr>
    <!--@end-->
</tbody>
</table>

<!-- 버튼 -->
<div class="clear">
    <div class="fl">
        <a href="javascript:XE.checkboxToggleAll({ checked:false })" class="button"><span>{$lang->cmd_unselect_all}</span></a>
        <a href="javascript:XE.checkboxToggleAll()" class="button"><span>{$lang->cmd_reverse_all}</span></a>
    </div>
    <div class="fr">
        <span class="button black strong"><input type="submit" value="{$lang->cmd_delete_checked_poll}" /></span>
    </div>
</div>

</form>

<!-- 페이지 네비게이션 -->
<div class="pagination a1">
    <a href="{getUrl('page','','module_srl','')}" class="prevEnd">{$lang->first_page}</a> 
    <!--@while($page_no = $page_navigation->getNextPage())-->
        <!--@if($page == $page_no)-->
            <strong>{$page_no}</strong> 
        <!--@else-->
            <a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a> 
        <!--@end-->
    <!--@end-->
    <a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="nextEnd">{$lang->last_page}</a>
</div>

<!-- 검색 -->
<form action="./" method="get" class="adminSearch">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
    <fieldset>
        <select name="search_target">
            <option value="">{$lang->search_target}</option>
            <!--@foreach($lang->search_target_list as $key => $val)-->
            <option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
            <!--@end-->
        </select>
        <input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText" />
        <span class="button"><input type="submit" value="{$lang->cmd_search}" /></span>
        <a href="{getUrl('','module',$module,'act',$act)}" class="button"><span>{$lang->cmd_cancel}</span></a>
    </fieldset>
</form>
